﻿@using MvcContrib.UI.Grid
@using MvcContrib.UI.Pager;
@using MvcContrib.Pagination;
@model IPagination<OnlineExam.Entities.ExamMeta>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>

<div class="hastable">
	@Html.Grid(Model).Columns(column =>
{
	column.For(p => Html.CheckBox("ID", new { value = p.ID })).Named("选择");
	column.For(x => Html.ActionLink("编辑", "Edit", new { id = x.ID })).Named("编辑");
	column.For(x => Html.ActionLink("删除", "Delete", new { id = x.ID })).Named("删除");
})
</div>
<div class="pager">
	@Html.Pager(Model).Format(" 显示 {0} - {1} 共 {2} ").Previous("前一个").Next("下一个").Last("最后一个").First("第一个")
</div>


